package com.sync.data.ievent.repository;

import com.sync.data.ievent.entity.IeventBaseEmployee;
import com.sync.data.ievent.entity.IeventBasePosition;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface IeventBasePositionRepository extends JpaRepository<IeventBasePosition, String>, JpaSpecificationExecutor<IeventBasePosition>  {

    List<IeventBasePosition> findByIdInOrderByCreateTimeDesc(List<String> ids);

    List<IeventBasePosition> findByIdInAndIsActive(List<String> ids, int isActive);

    IeventBasePosition getByPositionCode(String positionCode);
}
